const remote = require('electron').remote;
const dialog = remote.dialog;
function onClick_OpenFile () {
    const label = document.getElementById('label');
    label.innerText = dialog.showOpenDialog({properties:['OpenFile']})
}
function onClick_CustomOpenFile() {
    const label = document.getElementById('label');
    var options = {};
    options.title = '打开文件夹';
    options.buttonLabel = '选择';
    options.defaultPath = '/image'
    options.properties = ['OpenFile'];
    label.innerText = dialog.showOpenDialog(options);
}